<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 3.8.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"yoursite.com","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="jad命令 todojava flight recorder todoarthas trace todo依赖注入jcp标准jsr330 todosynchronizedMap todoJNDI的两种写法 todoThrowable和Exception todo静态常量放类和接口的取舍 todo建议常量类，尽管接口能够提供一点点遍历，但是多接口继承的情况下可能会冲突（虽然常量接口不可能会被继承），至">
<meta name="keywords" content="Java">
<meta property="og:type" content="article">
<meta property="og:title" content="Java系列之TodoItem">
<meta property="og:url" content="http://yoursite.com/2020/03/29/Java系列之TodoItem/index.html">
<meta property="og:site_name" content="Feng&#39;s Blog">
<meta property="og:description" content="jad命令 todojava flight recorder todoarthas trace todo依赖注入jcp标准jsr330 todosynchronizedMap todoJNDI的两种写法 todoThrowable和Exception todo静态常量放类和接口的取舍 todo建议常量类，尽管接口能够提供一点点遍历，但是多接口继承的情况下可能会冲突（虽然常量接口不可能会被继承），至">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2020-03-29T03:40:56.908Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Java系列之TodoItem">
<meta name="twitter:description" content="jad命令 todojava flight recorder todoarthas trace todo依赖注入jcp标准jsr330 todosynchronizedMap todoJNDI的两种写法 todoThrowable和Exception todo静态常量放类和接口的取舍 todo建议常量类，尽管接口能够提供一点点遍历，但是多接口继承的情况下可能会冲突（虽然常量接口不可能会被继承），至">

<link rel="canonical" href="http://yoursite.com/2020/03/29/Java系列之TodoItem/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-Hans'
  };
</script>

  <title>Java系列之TodoItem | Feng's Blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Feng's Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>About</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>Categories</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-Hans">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/03/29/Java系列之TodoItem/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Fengorz">
      <meta itemprop="description" content="A Quiet Departure.">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Feng's Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Java系列之TodoItem
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>
              

              <time title="Created: 2020-03-29 11:32:37 / Modified: 11:40:56" itemprop="dateCreated datePublished" datetime="2020-03-29T11:32:37+08:00">2020-03-29</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="jad命令-todo"><a href="#jad命令-todo" class="headerlink" title="jad命令 todo"></a>jad命令 todo</h2><h2 id="java-flight-recorder-todo"><a href="#java-flight-recorder-todo" class="headerlink" title="java flight recorder todo"></a>java flight recorder todo</h2><h2 id="arthas-trace-todo"><a href="#arthas-trace-todo" class="headerlink" title="arthas trace todo"></a>arthas trace todo</h2><h2 id="依赖注入jcp标准jsr330-todo"><a href="#依赖注入jcp标准jsr330-todo" class="headerlink" title="依赖注入jcp标准jsr330 todo"></a>依赖注入jcp标准jsr330 todo</h2><h2 id="synchronizedMap-todo"><a href="#synchronizedMap-todo" class="headerlink" title="synchronizedMap todo"></a>synchronizedMap todo</h2><h2 id="JNDI的两种写法-todo"><a href="#JNDI的两种写法-todo" class="headerlink" title="JNDI的两种写法 todo"></a>JNDI的两种写法 todo</h2><h2 id="Throwable和Exception-todo"><a href="#Throwable和Exception-todo" class="headerlink" title="Throwable和Exception todo"></a>Throwable和Exception todo</h2><h2 id="静态常量放类和接口的取舍-todo"><a href="#静态常量放类和接口的取舍-todo" class="headerlink" title="静态常量放类和接口的取舍 todo"></a>静态常量放类和接口的取舍 todo</h2><p>建议常量类，尽管接口能够提供一点点遍历，但是多接口继承的情况下可能会冲突（虽然常量接口不可能会被继承），至于性能方面哪方更强，有待研究。。</p>
<h2 id="Map集合的initialCapacity和load-factor-todo"><a href="#Map集合的initialCapacity和load-factor-todo" class="headerlink" title="Map集合的initialCapacity和load factor todo"></a>Map集合的initialCapacity和load factor todo</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">new HashMap&lt;&gt;(1); // 入参为1的意义何在？</span><br></pre></td></tr></table></figure>
<h2 id="Collectors以及Collectors和Stream的联合用法-todo"><a href="#Collectors以及Collectors和Stream的联合用法-todo" class="headerlink" title="Collectors以及Collectors和Stream的联合用法 todo"></a>Collectors以及Collectors和Stream的联合用法 todo</h2><h2 id="FastList和ArrayList区别-todo"><a href="#FastList和ArrayList区别-todo" class="headerlink" title="FastList和ArrayList区别 todo"></a>FastList和ArrayList区别 todo</h2><h2 id="序列化和反序列化-todo"><a href="#序列化和反序列化-todo" class="headerlink" title="序列化和反序列化 todo"></a>序列化和反序列化 todo</h2><p>序列化原理？<br>如果序列化出去的数据存在redis或者数据库，原来的bean对象做修改，比如增加属性等，再反序列化的时候会不会报错？</p>
<h2 id="有没有java较有知名度的upms-todo"><a href="#有没有java较有知名度的upms-todo" class="headerlink" title="有没有java较有知名度的upms todo"></a>有没有java较有知名度的upms todo</h2><h2 id="只读的Map和List-todo"><a href="#只读的Map和List-todo" class="headerlink" title="只读的Map和List todo"></a>只读的Map和List todo</h2><h2 id="jmap-histo-todo"><a href="#jmap-histo-todo" class="headerlink" title="jmap histo todo"></a>jmap histo todo</h2><h2 id="Java微服务值内存占用高解决方法"><a href="#Java微服务值内存占用高解决方法" class="headerlink" title="Java微服务值内存占用高解决方法"></a>Java微服务值内存占用高解决方法</h2><p>可以从几个方向出发：</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Java/" rel="tag"># Java</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/03/29/JavaScript/" rel="prev" title="JavaScript">
      <i class="fa fa-chevron-left"></i> JavaScript
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/03/29/基金理财/" rel="next" title="基金理财">
      基金理财 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#jad命令-todo"><span class="nav-number">1.</span> <span class="nav-text">jad命令 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#java-flight-recorder-todo"><span class="nav-number">2.</span> <span class="nav-text">java flight recorder todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#arthas-trace-todo"><span class="nav-number">3.</span> <span class="nav-text">arthas trace todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#依赖注入jcp标准jsr330-todo"><span class="nav-number">4.</span> <span class="nav-text">依赖注入jcp标准jsr330 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#synchronizedMap-todo"><span class="nav-number">5.</span> <span class="nav-text">synchronizedMap todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#JNDI的两种写法-todo"><span class="nav-number">6.</span> <span class="nav-text">JNDI的两种写法 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Throwable和Exception-todo"><span class="nav-number">7.</span> <span class="nav-text">Throwable和Exception todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#静态常量放类和接口的取舍-todo"><span class="nav-number">8.</span> <span class="nav-text">静态常量放类和接口的取舍 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Map集合的initialCapacity和load-factor-todo"><span class="nav-number">9.</span> <span class="nav-text">Map集合的initialCapacity和load factor todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Collectors以及Collectors和Stream的联合用法-todo"><span class="nav-number">10.</span> <span class="nav-text">Collectors以及Collectors和Stream的联合用法 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#FastList和ArrayList区别-todo"><span class="nav-number">11.</span> <span class="nav-text">FastList和ArrayList区别 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#序列化和反序列化-todo"><span class="nav-number">12.</span> <span class="nav-text">序列化和反序列化 todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#有没有java较有知名度的upms-todo"><span class="nav-number">13.</span> <span class="nav-text">有没有java较有知名度的upms todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#只读的Map和List-todo"><span class="nav-number">14.</span> <span class="nav-text">只读的Map和List todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#jmap-histo-todo"><span class="nav-number">15.</span> <span class="nav-text">jmap histo todo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Java微服务值内存占用高解决方法"><span class="nav-number">16.</span> <span class="nav-text">Java微服务值内存占用高解决方法</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Fengorz</p>
  <div class="site-description" itemprop="description">A Quiet Departure.</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">125</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">68</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">87</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Fengorz</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a>
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script><script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>



  















  

  

</body>
</html>
